package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.feign.fallback.IntergralFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient(name = "intergral-service",fallback = IntergralFeignFallBack.class)
public interface IntergralFeignApi {

    @RequestMapping("/intergral/payOnIntergral")
    Result<String>  payOnIntergral(@RequestBody OperateIntergralVo vo);

    @RequestMapping("/intergral/refundOnIntergral")
    Result<String> refundOnIntergral(@RequestBody OperateIntergralVo vo);
}
